home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Keyboard / Keyboard Messages / CommandKeyMessage.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  392 b   |  29 lines  |  [TEXT/CWIE]

  1. // CommandKeyMessage.h
  2.  
  3. #ifndef CommandKeyMessage_h
  4. #define CommandKeyMessage_h
  5.  
  6. #ifndef KeyMessage_h
  7. #include "KeyMessage.h"
  8. #endif
  9. #ifndef Key_h
  10. #include "Key.h"
  11. #endif
  12.  
  13. class CommandKeyMessage: public KeyMessage
  14.   {
  15.     private:
  16.         ::Key key;
  17.     
  18.     public:
  19.         CommandKeyMessage( ::Key k )
  20.           : key( k )
  21.           {}
  22.         
  23.         ::Key Key() const            { return key; }
  24.         
  25.         virtual void Send() const;
  26.   };
  27.  
  28. #endif
  29.